﻿using System;
using System.Collections.Generic;
using System.Text;

namespace 中介者模式
{
    //媒婆
    class WomenMatchMaker
    {
        private Matcher _man;
        private Matcher _women;

        public WomenMatchMaker(Matcher man,Matcher women)
        {
            _man = man;
            _women = women;
        }

        /// <summary>
        /// 男方信息
        /// </summary>
        public void OfferManInformation()
        {
            switch (_women.mFamilyBG)
            {
                case "一般": _women.mFavor = -_women.mAge * 200 + _women.mMoney + 10; break;
                case "白领": _women.mFavor = -_women.mAge * 200 + _women.mMoney + 20; break;
                case "富足": _women.mFavor = -_women.mAge * 200 + _women.mMoney + 50; break;
                case "富二代": _women.mFavor = -_women.mAge * 200 + _women.mMoney + 80; break;
                case "企业": _women.mFavor = -_women.mAge * 200 + _women.mMoney + 100; break;
            }
            Console.WriteLine("信息给女方后，女孩的好感度为："+_women.mFavor);
        }

        /// <summary>
        /// 女方信息
        /// </summary>
        public void OfferWomenInformation()
        {
            switch (_women.mFamilyBG)
            {
                case "一般": _man.mFavor = -_man.mAge * 200 + _man.mMoney + 10; break;
                case "白领": _man.mFavor = -_man.mAge * 200 + _man.mMoney + 20; break;
                case "富足": _man.mFavor = -_man.mAge * 200 + _man.mMoney + 50; break;
                case "富二代": _man.mFavor = -_man.mAge * 200 + _man.mMoney + 80; break;
                case "企业": _man.mFavor = -_man.mAge * 200 + _man.mMoney + 100; break;
            }
            Console.WriteLine("信息给男方后，男孩的好感度为：" + _man.mFavor);
        }
    }
}
